#include "Poly.h"

/*
 *	Poly constructor with indiv. points
 */

Poly::Poly(Ogre::String name, bool visible, Ogre::Vector2 p1, Ogre::Vector2 p2, Ogre::Vector2 p3, Ogre::Vector2 p4, Ogre::SceneManager *sceneManager)
{
	m_polyName = name;
	m_draw = visible;
	m_sceneManager = sceneManager;

	m_polygonPoints.push_back(p1);
	m_polygonPoints.push_back(p2);
	m_polygonPoints.push_back(p3);
	m_polygonPoints.push_back(p4);
	m_polygonPoints.push_back(p1);
}

Poly::Poly(Ogre::String name, bool visible,std::vector<Ogre::Vector2> polyPoints, Ogre::SceneManager *sceneManager)
{
	m_polyName = name;
	m_draw = visible;
	m_sceneManager = sceneManager;

	for (int i = 0; i < polyPoints.size(); i++)
	{
		m_polygonPoints.push_back(polyPoints.at(i));
	}
}

/*
 *	Poly Destructor
 */

Poly::~Poly(void){}

void Poly::drawSelf()
{
	//needs a scene manager to draw itself (to get the root scene node)
}